import request from '@/http/index'
/**请求所有学生信息 */
export const getStudentList=(data)=>{
    return request({
        url:'/students',
        method:'get',
        data
    })
}

export const saveStudent=(data)=>{
    return request({
        url:'/students',
        method:'post',
        data
    })
}

export const delStudent=(id)=>{
    return request({
        url:`/students/${id}`,  // /students/1
        method:'delete',
        // data
    })
}

export const modifyStudent=(data)=>{
    return request({
        url:`/students`,  // /students/1
        method:'put',
        data
    })
}